#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;

int main() {
    int a, b, c, d, e;
    cin >> a >> b >> c >> d >> e;
    int x, y, z, w;
    cin >> x >> y >> z >> w;
    if (a * x + b * y + c * z - d * w > e) cout << "YES" << endl;
    else cout << "NO" << endl;
    return 0;
}